import yaml
import os

def load_yaml_config(config_name):
    """
    读取并返回 YAML 配置文件的内容。
    :param config_path: 配置文件的路径
    :return: 配置文件的内容
    """
    config_path = os.path.join(os.path.dirname(os.path.dirname(os.path.dirname(__file__))), config_name)

    with open(config_path, 'r') as f:
        return yaml.safe_load(f)